package com.qfedu.dao;

import com.qfedu.pojo.Order;
import com.qfedu.pojo.OrderCount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {

    Order queryById(Integer id);


    List<Order> queryAll(Order order);


    int insert(Order order);

    int update(Order order);

    int deleteById(Integer id);

    List<OrderCount> selectOrders();
    List<OrderCount> findByTel();

    List<OrderCount> selectOrdersByUser(@Param("uid") Integer id);

}
